<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <!-- css引用的先后顺序   先引入别人的，后引入自己的 -->
    <!-- <link rel="stylesheet" href="字体图标"> -->
    <link rel="stylesheet" href="../css/reset.css">
    <!-- <link rel="stylesheet" href="../css/common.css"> -->
    <style>
        header {
            height: 0.88rem;
            border-bottom: 1px solid #ddd;

            width: 100%;
            position: fixed;
            top: 0;

            display: flex;
            justify-content: space-between;
            padding: 0 .23rem;

            align-items: center;
        }

        footer {
            height: 1rem;
            background-color: #fff;

            width: 100%;
            position: fixed;
            bottom: 0;

            display: flex;
            align-items: center;
        }

        footer a {
            width: 20%;
            text-align: center;
            line-height: .4rem;
            position: relative;
        }

        footer .cur {
            color: red;
        }

        footer span {
            width: 0.6rem;
            height: 0.6rem;
            border-radius: 50%;
            background-color: #f00;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;

            position: absolute;
            left: .8rem;
            top: -0.1rem;

            border: 2px solid #fff;

            transform: scale(.7);
        }
    </style>
</head>

<body>

    <header>
        <i>图</i>
        <span>XX</span>
        <i>图</i>
    </header>

    <footer>
        <a href="">
            <i>图</i>
            <p>首页</p>
        </a>
        <a href="" class="cur">
            <i>图</i>
            <p>首页</p>
            <span>2</span>
        </a>
        <a href="">
            <i>图</i>
            <p>首页</p>
            <span>99+</span>
        </a>
        <a href="">
            <i>图</i>
            <p>首页</p>
        </a>
        <a href="">
            <i>图</i>
            <p>首页</p>
        </a>
    </footer>

</body>

</html>